//
// C++ Implementation: errorwindow
//
// Description: 
//
//
// Author: javier,,, <javier@javier-laptop>, (C) 2006
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include <QString>
#include <QWidget>
#include <QApplication>
#include <QDesktopWidget>
#include "errorwindow.h"

errorWindow::errorWindow(QWidget *parent)
 : QDialog(parent)
{
  ui.setupUi(this);
  setWindowFlags(Qt::WindowStaysOnTopHint);
  setGeometry(QApplication::desktop()->width()/2-100,QApplication::desktop()->height()/2-100,260,100);
  
  QObject::connect(ui.pushButton, SIGNAL(clicked()), this, SIGNAL(pushButton_click()));
}

errorWindow::~errorWindow()
{
}

void errorWindow::closeEvent(QCloseEvent *event)
{
  emit closedWindow();
}

void errorWindow::setText(QString text)
{
  ui.label->clear();
  ui.label->setText(text);
}




